package sht.dao;

import java.util.List;
import java.util.Map;

import org.hibernate.Query;


public interface Dao{
	void presit(Object entity);
	void save(Object entity);
	void delete(Object entity);
	void update(Object entity);
	<T> List<T> find(String sql,Object[] params);
	List<?> findNamedQuery(String queryName,Object...params);
	List<?> findNamedParam(String queryString, String[] paramNames, Object[] values);
	<T> List<T> getQueryList(String hsql,Map<String, Object> mapParam);
}
